package wli.java.stigs;

public class Vulnerability  implements Comparable <Vulnerability>{
	/*
	 * Physical security
	 * SEVERITY : Cat II/Important
	 * STATUS     : Unknown
	 * VMS 6 ID    : V0001070
	 * STIG ID      : 1.001
	 * Description
	 * Physical security of the Automated Information System (AIS) does not meet DISA requirements.
	 */
	
	String name; //Physical security
	String description; //Description [Physical security of the Automated Information System (AIS) does not meet DISA requirements.]
	String details;
	String discussion;
	String severity;
	String status;
	String vms6id;
	String stigid;
	
	public void setName(String name) {
		this.name = name;
	}
	public String getName() {
		return name;
	}
	public void setDescription(String descp) {
		this.description = descp;
	}
	public String getDescription() {
		return description;
	}
	public void setDetails(String details) {
		this.details = details;
	}
	public String getDetails() {
		return details;
	}
	public void setDiscussion(String discussion) {
		this.discussion = discussion;
	}
	public String getDiscussion() {
		return discussion;
	}
	public void setSeverity(String severity) {
		this.severity = severity;
	}
	public String getSeverity() {
		return severity;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public String getStatus() {
		return status; 
	}
	public void setVms6id(String vms6id) {
		this.vms6id = vms6id;
	}
	public String getVms6Id() {
		return vms6id;
	}
	public void setStigId(String stigid) {
		this.stigid = stigid;
	}
	public String getStigId() {
		return stigid;
	}
	public int compareTo(Vulnerability o) {
		int n = o.stigid.compareTo(this.stigid);
		
		if(n == 0) {
			return (o.vms6id.compareTo(this.vms6id));
		}
		return n;
	}
}
